//
//  NavigationController.h
//  SmallElephant
//
//  Created by Faith on 2024/11/11.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface NavigationController : UIViewController

/// 导航条
@property (nonatomic, strong) UIView *navigationBar;

/// 导航条
@property (nonatomic, strong) UIView *navigationBarLeftView;

/// 导航条
@property (nonatomic, strong) UIButton *btnLeft;

/// 导航条
@property (nonatomic, strong) UILabel *titleView;

/// 导航条
@property (nonatomic, strong) UIView *navigationBarMiddleView;

/// 导航条
@property (nonatomic, strong) UIView *navigationBarRightView;

/// 设置标题
- (void)setTitleText:(NSString*)title;

/// 设置自定义标题视图
- (void)setCustomTitleView:(UIView*)view style:(NSString*)style;

/// 页面跳转
- (void)pushViewController:(UIViewController*)viewController;

/// 页面跳转
- (void)pushViewController:(UIViewController*)viewController fromTabbar:(BOOL)fromTabbar;

/// 页面跳转
- (void)pushViewController:(UIViewController*)viewController checkPermission:(BOOL)checkPermission;

/// 页面跳转
- (void)pushViewController:(UIViewController*)viewController fromTabbar:(BOOL)fromTabbar checkPermission:(BOOL)checkPermission;

/// 返回按钮点击事件
- (void)popViewController;

/// 返回顶部控制器
- (void)popToRootViewController;

@end

NS_ASSUME_NONNULL_END
